class ListbeanEntity {
  List<ListbeanValue> value;
  bool state;

  ListbeanEntity({this.value, this.state});

  factory ListbeanEntity.fromJson(Map<String, dynamic> json) {
    return ListbeanEntity(
        value: json['value'] != null
            ? (json['value'] as List)
                .map((i) => ListbeanValue.fromJson(i))
                .toList()
            : null,
        state: json['state']);
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['state'] = this.state;
    if (this.value != null) {
      data['data'] = this.value.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class ListbeanValue {
  int id;
  String title;
  String picSrc;
  String code;
  int productType;
  int creationDate;
  int updationDate;
  int enabledFlag;
  int sort;
  String page;
  String point;
  String price;
  String listPrice;
  String moduleName;

  ListbeanValue(
      {this.id,  this.title, this.picSrc, this.code, this.productType,
      this.creationDate,
      this.updationDate,
      this.enabledFlag,  this.sort, this.page,  this.point,  this.price,  this.listPrice, this.moduleName});

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['picSrc'] = this.picSrc;
    data['code'] = this.code;
    data['productType'] = this.productType;
    data['creationDate'] = this.creationDate;
    data['updationDate'] = this.updationDate;
    data['enabledFlag'] = this.enabledFlag;
    data['sort'] = this.sort;
    data['page'] = this.page;
    data['point'] = this.point;
    data['price'] = this.price;
    data['listPrice'] = this.listPrice;
    data['moduleName'] = this.moduleName;
    return data;
  }

  factory ListbeanValue.fromJson(Map<String, dynamic> json) {
    return ListbeanValue(
      id: json['id'],
      title: json['title'],
      picSrc: json['picSrc'],
      code: json['code'],
      productType: json['productType'],
      creationDate: json['creationDate'],
      updationDate: json['updationDate'],
      enabledFlag: json['enabledFlag'],
      sort: json['sort'],
      page: json['page'],
      point: json['point'],
      price: json['price'],
      listPrice: json['listPrice'],
      moduleName: json['moduleName'],
    );
  }


}
